Skip to content

Conversation

juj
Copy link
Collaborator

@juj juj commented Sep 22, 2025

Building with -sTEXTDECODER=2 when targeting -sAUDIO_WORKLET is not catastrophic since the user might very likely never attempt to interop any strings between JS and Wasm from the Audio Worklet thread. So leaving UTF8Decoder to be null there will be fine.

Copy link
Collaborator

@sbc100 sbc100 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose we should give the same treatment to ENVIRONMENT_MAY_BE_SHELL? (This is other place we force the fallback IIRC).

juj added 2 commits October 1, 2025 14:38
…atastrophic since the user might very likely never attempt to interop any strings between JS and Wasm from the Audio Worklet thread. So leaving UTF8Decoder to be null there will be fine.
@juj juj force-pushed the wasm_audio_worklet_text_decoder_2 branch from 4dd0167 to c379a1e Compare October 1, 2025 11:42
@juj
Copy link
Collaborator Author

juj commented Oct 1, 2025

I suppose we should give the same treatment to ENVIRONMENT_MAY_BE_SHELL? (This is other place we force the fallback IIRC).

Hmm that could be a separate PR. I am not completely sure about that.

@juj juj force-pushed the wasm_audio_worklet_text_decoder_2 branch from 9537730 to c379a1e Compare October 1, 2025 11:48
juj added 5 commits October 1, 2025 18:54
This is an automatic change generated by tools/maint/rebaseline_tests.py.

The following (25) test expectation files were updated by
running the tests with `--rebaseline`:

```
test/codesize/audio_worklet_wasm.expected.js updated
codesize/test_codesize_cxx_ctors1.json: 149185 => 149179 [-6 bytes / -0.00%]
codesize/test_codesize_cxx_ctors2.json: 148589 => 148583 [-6 bytes / -0.00%]
codesize/test_codesize_cxx_except.json: 194602 => 194596 [-6 bytes / -0.00%]
codesize/test_codesize_cxx_except_wasm.json: 164191 => 164185 [-6 bytes / -0.00%]
codesize/test_codesize_cxx_except_wasm_legacy.json: 161780 => 161774 [-6 bytes / -0.00%]
codesize/test_codesize_cxx_mangle.json: 258693 => 258687 [-6 bytes / -0.00%]
codesize/test_codesize_cxx_noexcept.json: 151602 => 151596 [-6 bytes / -0.00%]
codesize/test_codesize_cxx_wasmfs.json: 176862 => 176856 [-6 bytes / -0.00%]
test/codesize/test_codesize_file_preload.expected.js updated
codesize/test_codesize_file_preload.json: 24160 => 24154 [-6 bytes / -0.02%]
codesize/test_codesize_files_js_fs.json: 18660 => 18654 [-6 bytes / -0.03%]
codesize/test_codesize_files_wasmfs.json: 55706 => 55696 [-10 bytes / -0.02%]
codesize/test_codesize_hello_O0.json: 38333 => 38325 [-8 bytes / -0.02%]
codesize/test_codesize_hello_O1.json: 9028 => 9020 [-8 bytes / -0.09%]
codesize/test_codesize_hello_O2.json: 6252 => 6246 [-6 bytes / -0.10%]
codesize/test_codesize_hello_O3.json: 5948 => 5942 [-6 bytes / -0.10%]
codesize/test_codesize_hello_Os.json: 5938 => 5932 [-6 bytes / -0.10%]
codesize/test_codesize_hello_dylink.json: 45504 => 45498 [-6 bytes / -0.01%]
codesize/test_codesize_hello_dylink_all.json: 843603 => 843605 [+2 bytes / +0.00%]
codesize/test_codesize_hello_single_file.json: 6503 => 6497 [-6 bytes / -0.09%]
codesize/test_codesize_hello_wasmfs.json: 5948 => 5942 [-6 bytes / -0.10%]
codesize/test_minimal_runtime_code_size_audio_worklet.json: 5686 => 5680 [-6 bytes / -0.11%]
codesize/test_small_js_flags.json: 2732 => 2726 [-6 bytes / -0.22%]
codesize/test_unoptimized_code_size.json: 177911 => 177878 [-33 bytes / -0.02%]

Average change: -0.05% (-0.22% - +0.00%)
```
This is an automatic change generated by tools/maint/rebaseline_tests.py.

The following (3) test expectation files were updated by
running the tests with `--rebaseline`:

```
codesize/test_codesize_cxx_mangle.json: 258687 => 258687 [+0 bytes / +0.00%]
codesize/test_codesize_files_wasmfs.json: 55696 => 55700 [+4 bytes / +0.01%]
codesize/test_codesize_hello_dylink_all.json: 843605 => 843597 [-8 bytes / -0.00%]

Average change: +0.00% (-0.00% - +0.01%)
```
This is an automatic change generated by tools/maint/rebaseline_tests.py.

The following (5) test expectation files were updated by
running the tests with `--rebaseline`:

```
test/codesize/audio_worklet_wasm.expected.js updated
codesize/test_codesize_cxx_mangle.json: 258687 => 258687 [+0 bytes / +0.00%]
codesize/test_codesize_files_wasmfs.json: 55700 => 55696 [-4 bytes / -0.01%]
codesize/test_codesize_hello_dylink_all.json: 843597 => 843605 [+8 bytes / +0.00%]
codesize/test_minimal_runtime_code_size_audio_worklet.json: 5680 => 5929 [+249 bytes / +4.38%]

Average change: +1.09% (-0.01% - +4.38%)
```
This is an automatic change generated by tools/maint/rebaseline_tests.py.

The following (3) test expectation files were updated by
running the tests with `--rebaseline`:

```
codesize/test_codesize_cxx_mangle.json: 258687 => 258687 [+0 bytes / +0.00%]
codesize/test_codesize_files_wasmfs.json: 55696 => 55700 [+4 bytes / +0.01%]
codesize/test_codesize_hello_dylink_all.json: 843605 => 843597 [-8 bytes / -0.00%]

Average change: +0.00% (-0.00% - +0.01%)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants